/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cn.ekuma.epos.ical.event;

import cn.ekuma.epos.ical.AbstractERPEvent;
import cn.ekuma.epos.order.model.OrderInfoTableModel;
import com.openbravo.bean.erp.viewbean.FindOrdersInfo;
import java.util.Calendar;


/**
 *
 * @author Administrator
 */
public class OrderEvent extends AbstractERPEvent{

    public OrderEvent(FindOrdersInfo orderInfo) {
        title = orderInfo.getDefineType()+"<"+orderInfo.getTotalPrice()+">";
        description = OrderInfoTableModel.getOrderInfoDescription(orderInfo);
        datetime=Calendar.getInstance();
        datetime.setTime(orderInfo.getDate());
    }
    
    @Override
    public int compareTo(Object o) {
        return -1;
    }
}
